package com.baizhi.service.impl;

import com.baizhi.config.log.LogAnnotation;
import com.baizhi.entity.AdminRole;
import com.baizhi.mapper.AdminRoleMapper;
import com.baizhi.service.AdminRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
@Service
public class AdminRoleServiceImpl implements AdminRoleService {
    @Autowired
    private AdminRoleMapper adminRoleMapper;
    @Transactional
    @LogAnnotation(content = "查询管理员管理",type = "select")
    public List<AdminRole> selectAll() {
        List<AdminRole> adminRoles = adminRoleMapper.selectAll();
        return adminRoles;
    }
}
